import { get, post, put, del, upload } from '@/utils/request'

const VERSION = 'v1'

export default {
    // 分页查询围栏信息
    loadPositionList: params => get(VERSION, '/around/page', params),
    // 无权限校验的电子围栏列表
    aroundPositionList: params => get(VERSION, '/media/common/around/list', params),
    // 新增围栏信息
    savePosition: params => post(VERSION, '/around', params),
    // 修改围栏信息
    editPosition: params => put(VERSION, '/around', params),
    // 删除围栏信息
    delPosition: params => del(VERSION, '/around', params),
    // 围栏信息统计
    positionCount: params => get(VERSION, '/around/count', params),
    // 热力图
    gisHeat: params => get(VERSION, '/gis/heat', params),
    // 加载公交车
    loadBus: params => get(VERSION, '/gis/map', params),
    // 加载公交车详情
    loadBusDetail: params => get(VERSION, '/gis/condition', params),
    // gis统计
    gisStatistics: params => get(VERSION, '/gis/statistics', params)
}